package com.gome.util;

import org.junit.Assert;



public class MemcachedUtilTest {
	
	
	public static void main(String[] args) throws Exception {
		MemcachedUtil.put("hello", "world", 60);
		String hello = (String) MemcachedUtil.get("hello");
		//Assert.assertEquals("world", hello);
		
		for(int i = 0; i < 10000000; ++i) {
			UserBean userBean = new UserBean("Jason" + i, "123456-" + i);
			MemcachedUtil.put("user" + i, userBean, 60);
			Object obj = MemcachedUtil.get("user" + i);
			//Assert.assertEquals(userBean, obj);
		}
	}

}